package com.boang.fx;
import java.util.ArrayList;
import java.util.Iterator;

/*
    @author:sa
    @date:2024/11/28 16:15
*/
public class ArrayListDemo01 {
    public static void main(String[] args) {
        ArrayList<String> arrayList= new ArrayList<String>();
        arrayList.add("a");
//        arrayList.add(1);
        Iterator<String> iterator = arrayList.iterator();
        while (iterator.hasNext()) {
            String str = (String) iterator.next();
            System.out.println(str);
        }
    }
}